home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 June / PCWorld_2003-06_cd.bin / SOFTWARE / TOPWARE / XQ / SETUP.EXE / {app} / plugins / XQ WinXP Start Menu 8.xpl < prev    next >
Text File  |  2002-10-22  |  6KB  |  159 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="9"
  3. "COUNT"="1"
  4. "UIPATH 1"="Appearance\Start menu\Windows XP\Classic Start Menu"
  5. "UIPATH 2"="Appearance\Start menu\Windows XP\New Start Menu"
  6. "NAME"="Start Menu Options"
  7. "VERSION"="4.15"
  8. "LANGUAGE"="VBScript"
  9. "OSVERSION"="000001"
  10. "TEXT 1"="dⁿdel dⁿ"
  11. "DESCRIPTION 1"="Common Items: Normally, Windows will display your personal items plus the "common" (aka All Users) groups inside Start->Programs. If this option is disabled, those "common" groups will no longer be displayed. IMPORTANT! If deactivated, it will hide ALL "common" items, so any Desktop Links for all users will be hidden as well!"
  12. "DESCRIPTION 2"="Programs Scrolling: In Windows 95/NT, if the Start Menu was too big to fit vertically on the screen, multiple columns were used. In Windows 98 and above, the Start Menu become scrolling. If you would prefer to see your Start Menu in multiple columns again, disable this option."
  13. "DESCRIPTION 3"="Programs Context Menu: This allows you to view a standard Explorer context menu when clicking with the right mouse button on an entry in Start->Programs. Note: disabling this will also disable the ability to use drag & drop to move the items inside Programs!"
  14. "DESCRIPTION 4"="Administrative Tools: Shows the Administrative Tools folder under Start->Programs. "
  15. "DESCRIPTION 5"="User-created Folders: If this is enabled, extra folders (like the Cascading Control Panel) can appear above the Program entry. When disabled, these folders will be hidden."
  16. "DESCRIPTION 6"="Windows Update: Controls if the link to Windows Update is visible or not. IMPORTANT: If you disabled this item, it will not only remove the item from the Start Menu but also stop Windows Update from working when you browse to the Windows Update Website (it will give you a very strange error)! This seems to be a side-effect of Windows."
  17. "AUTHOR"="Xteq Systems"
  18. "CONTACTURL"="http://www.xteq.com"
  19. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  20. "COMMENT 1"="'Multiple Columns' setting from Tom Simpson [thomas@mail.xenafan.com] - thanks a lot!"
  21. "COMMENT 2"="Thanks to Ken [k-o@cyberdude.dk] for the "no drag&drop" notice."
  22. "COMMENT 3"="Thanks to Dutler, Dennis R [dennis.dutler@eds.com] for the "XP screw up" notice."
  23. "COMMENT 4"="Thanks to Mischief271268@aol.com for the "Windows Update" screw up notice."
  24.  
  25.  
  26.       sV_CommonGroups="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoCommonGroups"
  27.    sV_StartMenuScroll="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\StartMenuScrollPrograms" 
  28.         sV_AdminTools="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\StartMenuAdminTools"
  29.    sV_ProgramsContext="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoChangeStartMenu"
  30.         sV_SubFolders="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoStartMenuSubFolders" 
  31.             sV_WinUpd="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoWindowsUpdate"
  32.  
  33. SUB Plugin_Initialize
  34.  'NT/2000 (XP?)
  35.  Call SetUIElement(1,"Show Common Items (read Desc!)")
  36.  Call ReadIt(1,sV_CommonGroups)
  37.  
  38.  '98/2000/ME/XP 
  39.  Call SetUIElement(2,"Show Start->Programs in scrolling mode")
  40.  Call ReadIt_3(2,sV_StartMenuScroll)
  41.  
  42.  '98/2000/ME/XP
  43.  Call SetUIElement(3,"Show Start->Programs context menu")
  44.  Call ReadIt(3,sV_ProgramsContext)
  45.  
  46.  '2000/XP
  47.  Call SetUIElement(4,"Show Start->Programs->Administrative Tools")
  48.  Call ReadIt_2(4,sV_AdminTools)
  49.  
  50.  'NT/2000/ME/XP
  51.  Call SetUIElement(5,"Show user-created folders at top of Start Menu")
  52.  Call ReadIt(5,sV_SubFolders)
  53.  
  54.  '2000/XP
  55.  Call SetUIElement(6,"Show 'Windows Update' in Start Menu (read Desc!)")
  56.  Call ReadIt(6,sV_WinUpd)
  57.  
  58.  
  59. END SUB
  60.  
  61. SUB Plugin_CheckData(ElementIndex)
  62. END SUB
  63.  
  64. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  65.  Call WriteIt(1,sV_CommonGroups)
  66.  Call WriteIt_3(2,sV_StartMenuScroll)
  67.  Call WriteIt(3,sV_ProgramsContext)
  68.  Call WriteIt_2(4,sV_AdminTools)
  69.  Call WriteIt(5,sV_SubFolders)
  70.  
  71.  Call WriteIt(6,sV_WinUpd)
  72.  
  73.  'special check for Windows Update
  74.  if GetUIElementEx(6)=false then
  75.     Call MsgWarning("You have selected not to show Windows Update. Please note that this will also disable the Windows Update Website when you try to access it using Internet Explorer. Please see the description for more information.")
  76.  end if
  77.  
  78.  Call IndicateSettingChange()
  79.  Call Logoff()
  80. END SUB
  81.  
  82. SUB Plugin_Terminate
  83. END SUB
  84.  
  85.  
  86.  
  87.  
  88.  
  89. Sub ReadIt(ITM,PATH1)
  90.  if RegValueExists(PATH1)=false then 'setting available?
  91.     'no setting -> item visible
  92.     Call SetUIElementEx(ITM,true)
  93.  else
  94.     i=RegReadValue(PATH1)
  95.     if IsNumeric(i)=true then
  96.        if i=0 then 
  97.            Call SetUIElementEx(ITM,true)
  98.        end if
  99.     end if
  100.  end if
  101. End Sub
  102.  
  103. Sub ReadIt_2(ITM,PATH1)
  104.  if RegValueExists(PATH1)=false then 'setting available?
  105.     'no setting -> item not visible
  106.     Call SetUIElementEx(ITM,false)
  107.  else
  108.     i=RegReadValue(PATH1)
  109.     If IsNumeric(i)=true then   
  110.        if i=1 then 
  111.           Call SetUIElementEx(ITM,true)  
  112.        end if
  113.     end if
  114.  end if
  115. End Sub
  116.  
  117. Sub ReadIt_3(ITM,PATH1)
  118.  if RegValueExists(PATH1)=false then 'setting available?
  119.     'no setting -> item is active
  120.     Call SetUIElementEx(ITM,true)
  121.  else
  122.     s=RegReadValue(PATH1)
  123.     if LCase(s)="yes" then 
  124.        Call SetUIElementEx(ITM,true)  
  125.     end if
  126.  end if
  127. End Sub
  128.  
  129. Sub WriteIt(ITM,PATH1)
  130.  b=GetUIElementEx(ITM)
  131.  if b=true then
  132.  
  133.     s=RegReadValue(PATH1)
  134.     if IsEmpty(s)=false then
  135.        Call RegDeleteValue(PATH1)
  136.     end if
  137.  
  138.  else
  139.     Call RegWriteValue(PATH1,1,2)
  140.  end if
  141. End Sub
  142.  
  143. Sub WriteIt_2(ITM,PATH1)
  144.  b=GetUIElementEx(ITM)
  145.  if b=true then
  146.     Call RegWriteValue(PATH1,1,2)
  147.  else
  148.     Call RegWriteValue(PATH1,0,2)
  149.  end if
  150. end Sub
  151.  
  152. Sub WriteIt_3(ITM,PATH1)
  153.  b=GetUIElementEx(ITM)
  154.  if b=true then
  155.     Call RegWriteValue(PATH1,"YES",1)
  156.  else
  157.     Call RegWriteValue(PATH1,"NO",1)
  158.  end if
  159. End Sub